Optimal. Leaf size=57 \[ \frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\frac{\sqrt{b}}{x}\right )}{4 \sqrt{b}}-\frac{\sqrt{\pi } e^a \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )}{4 \sqrt{b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0311093, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5346, 5298, 2204, 2205} \[ \frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\frac{\sqrt{b}}{x}\right )}{4 \sqrt{b}}-\frac{\sqrt{\pi } e^a \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )}{4 \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5346
Rule 5298
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int \frac{\sinh \left (a+\frac{b}{x^2}\right )}{x^2} \, dx &=-\operatorname{Subst}\left (\int \sinh \left (a+b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int e^{-a-b x^2} \, dx,x,\frac{1}{x}\right )-\frac{1}{2} \operatorname{Subst}\left (\int e^{a+b x^2} \, dx,x,\frac{1}{x}\right )\\ &=\frac{e^{-a} \sqrt{\pi } \text{erf}\left (\frac{\sqrt{b}}{x}\right )}{4 \sqrt{b}}-\frac{e^a \sqrt{\pi } \text{erfi}\left (\frac{\sqrt{b}}{x}\right )}{4 \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.0343331, size = 50, normalized size = 0.88 \[ \frac{\sqrt{\pi } \left ((\cosh (a)-\sinh (a)) \text{Erf}\left (\frac{\sqrt{b}}{x}\right )-(\sinh (a)+\cosh (a)) \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )\right )}{4 \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.027, size = 44, normalized size = 0.8 \begin{align*}{\frac{\sqrt{\pi }{{\rm e}^{-a}}}{4}{\it Erf} \left ({\frac{1}{x}\sqrt{b}} \right ){\frac{1}{\sqrt{b}}}}-{\frac{{{\rm e}^{a}}\sqrt{\pi }}{4}{\it Erf} \left ({\frac{1}{x}\sqrt{-b}} \right ){\frac{1}{\sqrt{-b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.17297, size = 84, normalized size = 1.47 \begin{align*} -\frac{1}{2} \, b{\left (\frac{e^{\left (-a\right )} \Gamma \left (\frac{3}{2}, \frac{b}{x^{2}}\right )}{x^{3} \left (\frac{b}{x^{2}}\right )^{\frac{3}{2}}} + \frac{e^{a} \Gamma \left (\frac{3}{2}, -\frac{b}{x^{2}}\right )}{x^{3} \left (-\frac{b}{x^{2}}\right )^{\frac{3}{2}}}\right )} - \frac{\sinh \left (a + \frac{b}{x^{2}}\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82332, size = 158, normalized size = 2.77 \begin{align*} \frac{\sqrt{\pi } \sqrt{-b}{\left (\cosh \left (a\right ) + \sinh \left (a\right )\right )} \operatorname{erf}\left (\frac{\sqrt{-b}}{x}\right ) + \sqrt{\pi } \sqrt{b}{\left (\cosh \left (a\right ) - \sinh \left (a\right )\right )} \operatorname{erf}\left (\frac{\sqrt{b}}{x}\right )}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sinh{\left (a + \frac{b}{x^{2}} \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sinh \left (a + \frac{b}{x^{2}}\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]